#! /bin/bash

echo -n "please input [y/n]: "

read s1

if test -z $s1
then
    echo "s1 is empty"
    exit 1
fi

if test $s1 = "y"
then
    echo "yes"
fi

if test $s1 = "n"
then
    echo "no"
fi
